package com.joysuch.wwyt.mh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Leong
 * @date 2022/9/19 15:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_mh_alarm_limit_config")
@ApiModel(value = "报警超限配置对象", description = "")
public class MhAlarmLimitConfig extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("配置类型:0全局;1单监测点")
    private Integer type;

    @ApiModelProperty("监测点ID")
    private Long monitoringPointId;

    @ApiModelProperty("周期频次")
    private Integer checkRateDescribe;

    @ApiModelProperty("周期单位: 分钟; 小时；天；月")
    private String periodUnit;

    @ApiModelProperty("超限次数")
    private Integer exceedTimes;
}
